wayland: Use portable sed syntax in gdk/wayland/Makefile.am
authorTing-Wei Lan <lantw@src.gnome.org>
Sat, 6 Jan 2018 18:57:38 +0000 (02:57 +0800)
committerTing-Wei Lan <lantw@src.gnome.org>
Tue, 9 Jan 2018 16:45:07 +0000 (00:45 +0800)
Replace non-portable \<, \>, \+ with \(, \), \{, \} to avoid build
failure on systems not using GNU sed.

https://bugzilla.gnome.org/show_bug.cgi?id=792279

gdk/wayland/Makefile.am

index cccb572f1549f8fff7d664f9266120ef27cb36ce..0b2d4ce27d8cdd84166c0b47c0129826702e8309 100644 (file)
@@ -80,11 +80,11 @@ libgdkwaylandinclude_HEADERS =                      \
 .SECONDEXPANSION:
 
 define protostability
-$(shell echo $1 | sed 's/.*\(\<unstable\>\|\<stable\>\).*/\1/')
+$(shell echo $1 | sed 's/.*-\(\(un\)\{0,1\}stable\)-.*/\1/')
 endef
 
 define protoname
-$(shell echo $1 | sed 's/\([a-z\-]\+\)-[a-z]\+-v[0-9]\+/\1/')
+$(shell echo $1 | sed 's/\([a-z\-]\{1,\}\)-[a-z]\{1,\}-v[0-9]\{1,\}/\1/')
 endef
 
 %-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml